package com.shop.loan.model.common;

public enum Code {
    FAIL(-1, "失败"),
    SUCCESS(1, "成功"),
    NEED_LOGIN(2, "请先登录"),
    PARAM_LACK(3, "参数不足"),
    ALIPAY_FAIL(4, "请再次授权"),
    PIC_CODE_INVALID(5, "无效图形验证码"),
    GOODS_INVALID(6, "无效商品"),
    USER_IDENTITY_LACK(7, "请先实名认证"),
    USER_LACK(8, "用户不存在"),
    ADDRESS_LACK(9, "地址信息为空"),
    PARAM_INVALID(10, "参数无效"),
    PHONE_CODE_INVALID(11, "无效短信验证码"),
    STOCK_INVALID(12, "该商品已经没有库存了"),
    ALIPAY_PAY_FAIL(13, "支付订单异常"),
    NEED_MOBILE(15, "请再次授权"),
    RATE_HIGH(16, "请稍后重试"),
    CAREER_LACK(17, "职业信息不能为空"),
    USER_INFO_LACK(18, "身份基本信息不能为空"),
    EDU_INFO_LACK(19, "教育信息不能为空"),
    CONTRACT_LACK(20, "联系人信息不能为空"),
    MARI_LACK(21, "婚姻信息不能为空"),
    USER_BASE_INFO_LACK(22, "用户信息未完善"),
    ORDER_WAIT_AUTH(23, "订单等待审核中，请勿重复提交"),
    ORDER_PAY_STATUS(24, "无需支付"),
    LOGISTICS_NULL(25, "无物流信息"),
    ZHIMA_SOCRE_NULL(26, "芝麻分不能为空"),
    IDCARD_INVALID(27, "无效身份证号码"),
    EMAIL_NULL(28, "邮箱不能为空"),
    POSITION_ERROR(29, "签署位置获取异常"),
    PARAM_REJECT(30, "非法参数"),
    USER_STATUS_ERROR(31, "状态异常，暂时无法下单"),
    USER_AGE_ERROR(32, "年龄受限，暂时无法下单"),
    MOBILE_EXIST(33, "手机号码已注册，请清除小程序缓存"),
    OCR_FAIL(34, "身份证识别失败,请确认身份证照片是否有效"),
    NAME_IDCARD_NULL(35, "姓名和身份证号码不能为空"),
    IDCARD_PIC_NULL(36, "身份证正反面照片不能为空"),
    IDCARD_FRONT_ERROR(37, "身份证正面照片识别失败，请重新上传"),
    IDCARD_Back_ERROR(38, "身份证反面照片识别失败，请重新上传"),
    UPDATE_REFUSE(39, "已有订单，无法修改"),
    SIGN_FILE_REFUSE(40, "签署文件异常"),
    REPORT_GET_FAIL(41, "报告获取失败"),
    CONTRACT_FAIL(42, "合同文件异常"),
    CREDIT_RESULT_FAIL(43, "征信报告结果获取失败"),
    CREDIT_WAIT(44, "征信查询请求已提交，请等待1分钟后查看"),
    CREDIT_INTERFACE_ERROR(45, "征信接口异常"),
    SIGN_FLOWElD_NULL(46, "签署流程为空"),
    SIGN_FILE_NULL(47, "签署文件为空"),
    PERMISSION_ERROR(48, "权限异常"),
    PHONE_ERROR(49, "手机号码为空"),
    REPORT_WAIT(50, "报告获取中，请稍后刷新查看"),
    ORDER_NUMBER_MAX(51, "商品数量超限"),
    ORDER_ING_GOODS_NUMBER_MAX(52, "进行中商品数量超限"),
    EMAIL_INVALID(53, "请输入有效邮箱"),
    ORDER_STATUS_ERROR(54, "订单状态异常"),
    USER_BASE_UN_SET(55, "个人信息暂未完善，请先完善"),
    POST_AGAIN(56, "信息已提交，请返回上传身份证照片"),
    GET_OPEN_ID_FAIL(57, "获取用户id失败"),
    PHONE_NUMBER_MAX(58, "24小时验证码获取上限"),
    NEED_BIND_CARD(59, "请先绑定银行卡/若已绑定请先查看银行卡后再下单"),
    ORDER_ING_NUMBER_MAX(60, "进行中订单数量超限"),
    ACCOUNT_NOT_EXIST(61, "账号不存在"),
    ACCOUNT_STATUS_ERROR(62, "账号状态异常"),
    ACCOUNT_MOBILE_NULL(63, "账号未设置手机号码"),
    USER_ADDRESS_LACK(64, "用户收货地址异常"),
    MSG_SEND_ERROR(65, "验证码发送失败，请稍后重试"),
    BUSINESS_ASIGN_LACK(66, "商户爱签配置缺失"),
    PLATFORM_ASIGN_LACK(67, "平台爱签配置缺失"),

    AUTH_EXIST(13, "已认证，请勿重复提交"),
    YEAR_MIN(14, "借款人年龄异常"),
    USER_AUTH_LACK(15, "请先认证完善"),
    PAY_FAIL(17, "支付异常"),
    ORDER_UN_FIND(18, "订单不存在"),
    MONEY_ERROR(23, "金额异常"),
    AUTH_ERROR(24, "认证异常"),
    NOT_NEED_PAY(25, "订单无需支付"),
    BALANCE_LACK(26, "余额不足"),
    PASSWORD_TOO_SHORT(27, "请输入至少6位的密码"),
    ID_CARD_INVALID(30, "身份证号码格式不正确"),
    MOBILE_INVALID(31, "手机号码格式不正确"),
    SIGN_STATUS_ERROR(34, "订单无需签署"),
    IDENTITY_REJECT(36, "已有订单，不允许更改实名"),
    ORDER_STATUS_NOT_PAY(37, "订单状态无需支付"),
    NOT_OP_AUTH(38, "当前用户无操作权限"),
    ORDER_NOT_CANCEL(43, "订单不可取消"),
    PAY_MONEY_TO_MANY(44, "销账金额超过本息"),
    PERIOD_LACK(45, "分期参数缺失"),
    START_END_TIME_LACK(46, "起始时间缺失"),
    OPEN_ID_LACK(49, "参数缺失，请重新登录"),
    ORDER_ING(50, "已有进行中的订单"),
    PERSON_MOBILE3_FAIL(51, "手机号码实名与当前信息不一致，请检查"),
    CONTRACT_FILE_NOT_EXIT(55, "合同文件不存在"),
    NOT_LOAN(56, "非财务，无需设置放款密码"),
    PERIOD_PAY(57, "本期已还款"),
    lOAN_ING(58, "已放款或放款订单已提交，请勿重复放款"),
    NOT_ADMIN(59, "非超级管理员"),
    USER_BLACK(60, "用户资质不足，无法下单"),
    RD_COMPANY_NOT_EXIST(61, "融担公司不存在"),
    LOAN_COMPANY_NOT_EXIST(62, "小贷公司不存在"),
    USER_IDENTITY_AUTH_LACK(63, "用户还未实名认证"),
    DEL_ORDER_ING(64, "存在审核中或进行中订单"),
    CODE_ERROR(65, "无效验证码"),
    SIGN_ERROR(66, "签名异常"),
    BANK_EMPTY(67, "银行卡为空"),
    ID_CARD_FRONT_ERROR(68, "身份证正面识别失败，请重新上传"),
    ID_CARD_BACK_ERROR(69, "身份证反面识别失败，请重新上传"),
    PAY_ING(70, "支付进行中，请稍后重试"),
    IDEN_EXITS(71, "该身份证号码已实名"),
    PRODUCT_LOCK(72, "额度未解锁，结清订单可解锁更多额度"),
    IP_CHANGE(74, "ip变更，请重新登录"),




    CIWEI_MOBILE_EXIST(100, "手机号码已存在"),
    CIWEI_MOBILE_EXIST_(100, "手机号码已存在"),





    ;

    private Integer code;

    private String msg;


    Code(Integer code, String msg) {
        this.msg = msg;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
